<?php
namespace Home\Controller;
use Think\Controller;
class BaseController extends Controller{
 public function _initialize()
    {
        if (!session('?uname')) {
            $this->error('请登录后访问本页面', U('Users/login'));
        }
        // else{
        // 	 // $this->success("欢迎进入该网站",U("Index/"));
        // }
}


}
?>